% paper in Niu and Niu and Tian [2022]
function j = Noll_nm_to_j(n,m)

if m == 0
    j = n*(n+1)/2 + 1;
else % m uneqal to 0
    j = n*(n+1)/2 + m;
end
% end of the function
end